package gate

import (
	"reflect"
	"server/app/game"
	"server/msg"
)

func init() {
	//所有Request
	for _, v := range msg.MsgInfo {
		msgType := reflect.TypeOf(v)
		if msgType.String()[len(msgType.String())-7:] == "Request" {
			msg.Processor.SetRouter(v, game.ChanRPC)
		}
	}
}
